#include"process.h"

void show(int rate)
{
    char str[102];
    memset(str,'\0',sizeof(str));
    int cnt=0;
    for(;cnt<rate;++cnt)
    {
        str[cnt]=STYLE;
        printf("[%-100s][%d%%]\r",str,cnt+1);
        fflush(stdout);
        usleep(1000*100*(rand()%10+1));
    }
    printf("\n");
}


